package com.example.coursedesign.ui.notifications;

import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;

import com.example.coursedesign.entity.User;

public class UserViewModel extends AndroidViewModel {
    private MutableLiveData<User> currentUser = new MutableLiveData<>();

    public UserViewModel(@NonNull Application application) {
        super(application);
    }

    public LiveData<User> getCurrentUser() {
        return currentUser;
    }

    public void updateCurrentUser(User user) {
        this.currentUser.setValue(user);
    }
}